import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useChat = defineStore('userChat', () => {
    const Chatinfo = ref({});
    const uid = ref('')
    const latestData = computed(() => Chatinfo.value);
    const uidData = computed(() => uid.value);
    return { Chatinfo, latestData, uid, uidData}
}

)